package com.jkl.entity.drIndexFormula;

import javax.persistence.*;

import org.apache.ibatis.type.JdbcType;

import com.jkl.entity.area.BSArea;
import com.jkl.entity.drIndex.DrIndex;
import com.jkl.entity.drTemplateDetail.DrTemplateDetail;

import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.ColumnType;

@Data
@Accessors(chain = true)
@Table(name = "dr_index_formula")
public class DrIndexFormula {
    /**
     * 主键ID，唯一
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY,generator="Mysql")
    @Column(name = "row_id")
    private Integer rowId;

    /**
     * 指标表code，关联dr_index.index_code
     */
    @Column(name = "index_code")
    private Integer indexCode;

    /**
     * 公式说明。列举公式的中文说明
     */
    @Column(name = "formula_note")
    private String formulaNote;
    /**
     * 计算公式
     */
    @Column(name = "index_formula")
    private String indexFormula;
    
    @Transient
    private DrIndexFormula drIndexFormula;

}